home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / et / et-2_2.lha / et2.2 / src / SERVER / ServerConnection.h < prev    next >
C/C++ Source or Header  |  1990-01-12  |  539b  |  25 lines

  1. #ifndef ServerConnection_First
  2. #define ServerConnection_First
  3.  
  4. #include "WindowPort.h"
  5. #include "Server.h"
  6. #include "System.h"
  7.  
  8. class ServerConnection : public SysEvtHandler {
  9.     int sock, sequence;
  10.     FILE *ifp, *ofp;
  11.  
  12. public:
  13.     ServerConnection();
  14.     void Notify(SysEventCodes, int);
  15.     void Close();
  16.     bool HasInterest();
  17.     bool SafeRead(Response *b, int timeout, bool overread);
  18.     void SendMsg(int tag, int ref, char *fmt= 0, ...);
  19.     void Flush();
  20. };
  21.  
  22. extern ServerConnection *gConnection;
  23.  
  24. #endif ServerConnection_First
  25.